Skip to content

Conversation

@jirastorza
Copy link
Contributor

@jirastorza jirastorza commented Oct 22, 2025

Pull Request Overview

This pull request introduces parallel execution for tool calls in the RAG pipeline to improve performance when multiple tools are invoked simultaneously. The refactoring splits the tool execution logic into separate functions and leverages Python's ThreadPoolExecutor for concurrent processing.

Key changes:

  • Refactored monolithic _run_tools function into _run_tool (single execution) and _run_tools (parallel orchestration)
  • Implemented parallel tool execution using ThreadPoolExecutor with configurable worker count

@emilradix emilradix requested a review from Copilot October 22, 2025 08:28
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This pull request introduces parallel execution for tool calls in the RAG pipeline to improve performance when multiple tools are invoked simultaneously. The refactoring splits the tool execution logic into separate functions and leverages Python's ThreadPoolExecutor for concurrent processing.

Key changes:

  • Refactored monolithic _run_tools function into _run_tool (single execution) and _run_tools (parallel orchestration)
  • Implemented parallel tool execution using ThreadPoolExecutor with configurable worker count
  • Added error handling with future cancellation to prevent resource leaks on failures

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@emilradix emilradix merged commit c9aa0e4 into main Dec 15, 2025
4 checks passed
@emilradix emilradix deleted the feat/paralell_tool_execution branch December 15, 2025 09:24
@emilradix emilradix changed the title feat: paralell tool execution feat: add parallel tool execution Dec 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants